package com.dlq.goods.pojo;

import java.util.HashMap;
import java.util.Map;

public class Supplier {
	public static final Integer SUPPLIER_NEEDS_IS_YES = 1;
	public static final Integer SUPPLIER_NEEDS_IS_NO = 2;
	
	public static final String SUPPLIER_NEEDS_IS_YES_VIEW = "送货";
	public static final String SUPPLIER_NEEDS_IS_NO_VIEW = "自提";
	
	public static final Map<Integer , String> needsMap = new HashMap<Integer, String>();
	static{
		needsMap.put(SUPPLIER_NEEDS_IS_YES, SUPPLIER_NEEDS_IS_YES_VIEW);
		needsMap.put(SUPPLIER_NEEDS_IS_NO, SUPPLIER_NEEDS_IS_NO_VIEW);
	}
private Integer uuid;
private String name;
private String address;
private String contact;
private String tele;
private Integer needs;

private String needsView;

public String getNeedsView() {
	return needsView;
}
public Integer getUuid() {
	return uuid;
}
public void setUuid(Integer uuid) {
	this.uuid = uuid;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getAddress() {
	return address;
}
public void setAddress(String address) {
	this.address = address;
}
public String getContact() {
	return contact;
}
public void setContact(String contact) {
	this.contact = contact;
}
public String getTele() {
	return tele;
}
public void setTele(String tele) {
	this.tele = tele;
}
public Integer getNeeds() {
	return needs;
}
public void setNeeds(Integer needs) {
	this.needs = needs;
	this.needsView = needsMap.get(needs);
}
@Override
public String toString() {
	return "Supplier [uuid=" + uuid + ", name=" + name + ", address=" + address
			+ ", contact=" + contact + ", tele=" + tele + ", needs=" + needs
			+ "]";
}
public Supplier(Integer uuid, String name, String address, String contact,
		String tele, Integer needs) {
	super();
	this.uuid = uuid;
	this.name = name;
	this.address = address;
	this.contact = contact;
	this.tele = tele;
	this.needs = needs;
}
public Supplier() {
	super();
}




}
